package yxy.game.pm2.module.hero;

import yxy.game.pm2.bean.Soul;
import yxy.game.pm2.message.HeroMessage;

public class SoulHandle {
	public HeroMessage.Soul packSoul(Soul soul) {
		HeroMessage.Soul.Builder builder = HeroMessage.Soul.newBuilder();
		builder.setCode(soul.getCode());
		builder.setDataId(soul.getDataId());
		builder.addAllProperty(soul.getPropertyIds());
		builder.addAllSkill(soul.getSkillIds());
		builder.addAllPropertyLock(soul.getPropertyLocks());
		builder.addAllSkillLock(soul.getSkillLocks());
		return builder.build();
	}
}
